//导入页面
import Home from "../pages/home/home";
import Search from "../pages/search/search"
import Kind from "../pages/kind/kind" 
import Kind1 from "../pages/kind/components/com_one/comone";
import Kind2 from "../pages/kind/components/com_two/comtwo";
import Kind3 from "../pages/kind/components/com_three/comthree";
//完成路由的配置
const routes = [
    {
        path:"/",
        component:Home,
        redirect:"/home",
        meta:{
            auther:true,
            deep:1,
            selectIndex:1
        }
    },
    {
        path:"/home",
        component:Home,
        meta:{
            auther:true,
            deep:1,
            selectIndex:1
        }
    },
    {
        path:"/search",
        component:Search,
        meta:{
            auther:false,
            deep:1,
            selectIndex:2
        }
    },
    {
        path:"/kind",
        component:Kind,
        meta:{
            deep:1,
            selectIndex:3
        },
        children:[
            {
                path:"/kind1",
                component:Kind1
            },
            {
                path:"/kind2",
                component:Kind2
            },
            {
                path:"/kind3",
                component:Kind3
            }
        ]
    }
] 

export default routes;